#pragma once
#include<qstring.h>
#include<vector>
#include<queue>
#include<algorithm>
struct Process
{
	Process(int id,int bursttime,int priority):
		id(id),bursttime(bursttime),priority(priority),remainingtime(bursttime){}
	int getId() const;
	int getPriority() const;
	int getBurstTime() const;
	int getRemainingTime() const;
	void runForOneUnit();
	void decreasePriority();
	bool operator<(const Process& other) const;
    int id;
	int priority;
	int bursttime;
	int remainingtime;
};

